#ifndef __OSWITCH_ACTION_H__
#define __OSWITCH_ACTION_H__

class oSwitchIdle: public oAction
{
public:
	oSwitchIdle(oUnit* unit);
	virtual void run();
	virtual void update(ccTime dt);
	virtual void stop();
private:
	static string AnimationIdle;
	float _current;
};

class oSwitchPush: public oAction
{
public:
	oSwitchPush(oUnit* unit);
	virtual ~oSwitchPush();
	virtual void run();
	virtual void update(ccTime dt);
	virtual void stop();
	void onAnimationEnd(oModel* model, uint32 index);
	void onSwitchEvent(oEvent* e);
private:
	int _turnAnimationIndex;
	static string AnimationTurn;
	oListener* _listener;
};

#endif